#ifndef __KeyRecommander_H__
#define __KeyRecommander_H__
#include <vector>
#include <functional>
#include <string>
#include "CandidateResult.h"
#include "TcpConnection.h"
#define  KET_RECOMMANDER_NUM 10
using std::function;
using std::vector;
using std::string;
using TcpConnectionPtr = shared_ptr<TcpConnection>;
class KeyRecommander
{
public:
    KeyRecommander(const string& word, TcpConnectionPtr& conn);
    string doQuery();
private:
    string _sought;
    vector<CandidateResult> _prique;
    TcpConnectionPtr _conn;    
};




#endif
